mmc: fix bug in mmc_startup_v4()
authorJean-Jacques Hiblot <[email protected]>
Fri, 9 Feb 2018 11:09:28 +0000 (12:09 +0100)
committerJaehoon Chung <[email protected]>
Mon, 19 Feb 2018 07:59:33 +0000 (16:59 +0900)
commitace1bed327411cf3cade45599864df2d461045a0
tree6ac29ffa9e93d43225acf45237261b90d4b6f1b1
parenta0276f3eeed539cbc5ecba694030519dcd1fe308
mmc: fix bug in mmc_startup_v4()

The correspondence between mmc versions as used in u-boot and the version
numbers reported in register EXT_CSD_REV is wrong for versions above and
including MMC_VERSION_4_41. All those versions were shifted by one:
real 4.5 hardware appeared to be MMC_VERSION_5_0.

Fix this by adding the missing version in the correspondence table.

Reported-by: eil Eilmsteiner Heribert <[email protected]>
Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Sam Protsenko <[email protected]>
drivers/mmc/mmc.c
include/mmc.h